package com.huhai.services.impl;

import com.huhai.dao.ItemMapper;
import com.huhai.pojo.Item;

import com.huhai.services.ItemServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ItemServicesImpl implements ItemServices {
    @Autowired
    private ItemMapper itemMapper;

    public Item findById(int id) {
        System.out.println("ItemServicesImpl");
        return itemMapper.findById(id);
    }
}
